﻿using System.ComponentModel;
using nRoute.Components;

namespace nRoute.Samples.OfficerXcel.Model
{
    public class WorksheetColumn 
        : INotifyPropertyChanged
    {
        private string _title;
        private int _width;

#region Properties

        public string Title
        {
            get { return _title; }
            set
            {
                if (_title  != value)
                {
                    _title = value;
                    PropertyChanged.Notify(() => Title);
                }
            }
        }

        public int Width 
        {
            get { return _width; }
            set
            {
                if (_width  != value)
                {
                    _width = value;
                    PropertyChanged.Notify(() => Width);
                }
            }
        }

#endregion

#region INotifyPropertyChanged Members

        public event PropertyChangedEventHandler PropertyChanged;

#endregion

    }
}
